package cn.liumouren.jzxd.service.impl;

import cn.liumouren.jzxd.dao.MerchantDao;
import cn.liumouren.jzxd.entity.Merchant;
import cn.liumouren.jzxd.service.MerchantService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.util.Collection;

/**
 * (Merchant)表服务实现类
 *
 * @author makejava
 * @since 2021-01-23 19:52:05
 */
@Service("merchantService")
public class MerchantServiceImpl extends ServiceImpl<MerchantDao, Merchant> implements MerchantService {
    @Override
    @Transactional(rollbackFor = Exception.class)
    public boolean save(Merchant merchant) {
        return super.save(merchant);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public boolean updateById(Merchant merchant) {
        return super.updateById(merchant);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public boolean removeByIds(Collection<? extends Serializable> idList) {
        return super.removeByIds(idList);
    }
}